import request from '@/utils/request'

// 查询部件类型列表
export function listBujianleixing(query) {
  return request({
    url: '/ruoyi-yuce/bujianleixing/list',
    method: 'get',
    params: query
  })
}

// 查询部件类型详细
export function getBujianleixing(id) {
  return request({
    url: '/ruoyi-yuce/bujianleixing/' + id,
    method: 'get'
  })
}

// 新增部件类型
export function addBujianleixing(data) {
  return request({
    url: '/ruoyi-yuce/bujianleixing',
    method: 'post',
    data: data
  })
}

// 修改部件类型
export function updateBujianleixing(data) {
  return request({
    url: '/ruoyi-yuce/bujianleixing',
    method: 'put',
    data: data
  })
}

// 删除部件类型
export function delBujianleixing(id) {
  return request({
    url: '/ruoyi-yuce/bujianleixing/' + id,
    method: 'delete'
  })
}
